//
//  Common.swift
//  freeChatting
//
//  Created by mac on 16/4/16.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit
/*
App Key：1670546686
App Secret：dd79ba0a7d98a1564f2760c3405b792e
授权回调页：http://www.baidu.com/
*/
//申请应用时分配的AppKey
let client_id = "1670546686"
//授权回调页
let redirect_uri = "http://www.baidu.com/"
//申请应用时分配的AppSecret
let client_secret = "dd79ba0a7d98a1564f2760c3405b792e"
//用户登录帐号
let userName = "muqi70595723@163.com"
//登录密码
let passWord = "aaa333"
//屏幕的宽度
let kScreenW = UIScreen.mainScreen().bounds.size.width
//屏幕的高度
let kScreenH = UIScreen.mainScreen().bounds.size.height
//RGB颜色
func RGBColor( red red: CGFloat, green: CGFloat, blue: CGFloat)->UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}
//随机颜色
func randomColor()->UIColor{
    let r = random() % 256
    let g = random() % 256
    let b = random() % 256
    return RGBColor(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}
let themeColor = UIColor.orangeColor()
